package org.asdmp.restday;
import org.jbpm.api.jpdl.DecisionHandler;
import org.jbpm.api.model.OpenExecution;

public class MyDecision implements DecisionHandler {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	public String decide(OpenExecution execution) {
		String to = execution.getVariable("to").toString();
		
		if(to.equals("组长")){
			return "tozuzhang";
		}else if (to.equals("科长")){
			return "tokezhang";
		}else if (to.equals("部长")){
			return "tobuzhang";
		}else{
			return "to end1";
		}
	}

}
